package com.kgc.personcommon.remote;

import com.kgc.basic.util.ResponseMsg;
import com.kgc.personcommon.pojo.Role;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

public interface RoleRemote {

    @RequestMapping("getRolePage")
    @ResponseBody
    ResponseMsg getRolePage(@RequestBody Map<String, Object> params);

    @RequestMapping("addRole")
    @ResponseBody
    ResponseMsg addRole(@RequestBody Role role);

    @RequestMapping("updateRole")
    @ResponseBody
    ResponseMsg updateRole(@RequestBody Role role);

    @RequestMapping("delRole")
    @ResponseBody
    ResponseMsg delRole(@RequestParam("id") String id);

    @RequestMapping("getRoleById")
    @ResponseBody
    ResponseMsg getRoleById(@RequestParam("id") String id);

    @RequestMapping("getAllRole")
    @ResponseBody
    ResponseMsg getAllRole(@RequestBody Map<String, Object> params);
}
